<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	<title>shourubaobiao</title>
	<link rel="stylesheet" type="text/css" href="../../css/api.css" />
	<link rel="stylesheet" type="text/css" href="./css/my.css" />
</head>

<body>
	<div class="income_bg">
		<div class="shophead">
			<div class="shop_earn">
				我赚了(元)
			</div>
			<text class="shop_number" id="credit">￥0</text>
		</div>
		<div class="incomelist">
			<div class="nav_top ui-row orderlist">
				<ul>
					<li class="active" data-incometype="0">
						今日
					</li>
					<li data-incometype="1">
						昨日
					</li>
					<li data-incometype="2">
						本月
					</li>
					<li data-incometype="3">
						上月
					</li>
				</ul>
			</div>
		</div>
		<div class="shop_infos">
			<div class="alluser-infor-box">
				<div class="user-infor-box-item active">
					<div class="usernum profit">
						<text class="timename">今日</text> 总收益
						<text id="amount">0</text>元
					</div>
				</div>
				<div class="profit_bg"></div>
				<div class="user-infor-box">
					<div class="profit_style">
						<div class="hx"></div>
						<text>
								我的订单收益
							</text>
					</div>
					<div class="profit_list_jd_pdd">
						<div class="profit_list">
							<div class="porfit_pdd">
								<text>
										拼多多
									</text>
								<text class="myamountpdd">
										0
									</text>
							</div>
							<div class="porfit_pdd">
								<text>
										京东
									</text>
								<text class="myamountjd">
										0
									</text>
							</div>

							<div class="porfit_pdd">
								<text>
										淘宝
									</text>
								<text class="myamounttb">
										0
									</text>
							</div>
							<div class="porfit_pdd">
								<text>
										唯品会
									</text>
								<text class="myamountvip">
										0
									</text>
							</div>
							<div class="porfit_pdd">
								<text>
									苏宁
									</text>
								<text class="myamountsn">
										0
									</text>
							</div>
							<div class="porfit_pdd">
								<text>
									蘑菇
									</text>
								<text class="myamountmg">
										0
									</text>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								拼多多订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber  myorderpdd">
									0
								</div>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								京东订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber myorderjd">
									0
								</div>
							</div>
						</div>

						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								淘宝订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber myordertb">
									0
								</div>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								唯品会订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber myordervip">
									0
								</div>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								苏宁订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber myordersn">
									0
								</div>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								蘑菇订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber myordermg">
									0
								</div>
							</div>
						</div>
					</div>
					<div class="profit_style">
						<div class="hx"></div>
						<text>
								团队订单收益
							</text>
					</div>
					<div class="profit_list_jd_pdd">
						<div class="profit_list">
							<div class="porfit_pdd">
								<text>
										拼多多
									</text>
								<text class="teamamountpdd">
										0
									</text>
							</div>
							<div class="porfit_pdd">
								<text>
										京东
									</text>
								<text class="teamamountjd">
										0
									</text>
							</div>

							<div class="porfit_pdd">
								<text>
										淘宝
									</text>
								<text class="teamamounttb">
										0
									</text>
							</div>
							<div class="porfit_pdd">
								<text>
										唯品会
									</text>
								<text class="teamamountvip">
										0
									</text>
							</div>
							<div class="porfit_pdd">
								<text>
									苏宁
									</text>
								<text class="teamamountsn">
										0
									</text>
							</div>
							<div class="porfit_pdd">
								<text>
									蘑菇
									</text>
								<text class="teamamountmg">
										0
									</text>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								拼多多订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber teamorderpdd">
									0
								</div>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								京东订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber teamorderjd">
									0
								</div>
							</div>
						</div>

						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								淘宝订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber teamordertb">
									0
								</div>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								唯品会订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber teamordervip">
									0
								</div>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								苏宁订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber teamordersn">
									0
								</div>
							</div>
						</div>
						<div class="porfit_order_list">
							<div class="order_pdd_bg">
								蘑菇订单量
							</div>
							<div class="order_pdd_scroll">
								<div class="order_progress order_progress_gai"></div>
								<div class="order_nmuber teamordermg">
									0
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/config.js"></script>
<script type="text/javascript" src="../../script/zepto.min.js"></script>
<script type="text/javascript" src="../../script/doT.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
	// 全局的页面请求参数
	var data = new Object();
	data.incometype = 0;
	apiready = function() {
		getShouRuBaoBiao();
		switchMystatistic();
		pullDown(function() {
			getShouRuBaoBiao();
		}, true)
	}
	$(document).ready(function() {

	});

	function getShouRuBaoBiao() {
		postDataLogin("getShouRuBaoBiao", data, function(res) {
			if (res.code == 1) {
				$('.myorderpdd').text(res.data.mydata.pdd_num);
				$('.myorderjd').text(res.data.mydata.jd_num);
				$('.myordertb').text(res.data.mydata.tb_num);
				$('.myordervip').text(res.data.mydata.vip_num);
				$('.myordersn').text(res.data.mydata.sn_num);
				$('.myordermg').text(res.data.mydata.mg_num);
				$('.myamountpdd').text((res.data.mydata.pdd_money * 1).toFixed(2));
				$('.myamountjd').text((res.data.mydata.jd_money * 1).toFixed(2));
				$('.myamounttb').text((res.data.mydata.tb_money * 1).toFixed(2));
				$('.myamountvip').text((res.data.mydata.vip_money * 1).toFixed(2));
				$('.myamountsn').text((res.data.mydata.sn_money * 1).toFixed(2));
				$('.myamountmg').text((res.data.mydata.mg_money * 1).toFixed(2));
				$('.teamorderpdd').text(res.data.myteamdata.myteam_pdd_num);
				$('.teamorderjd').text(res.data.myteamdata.myteam_jd_num);
				$('.teamordertb').text(res.data.myteamdata.myteam_tb_num);
				$('.teamordervip').text(res.data.myteamdata.myteam_vip_num);
				$('.teamordersn').text(res.data.myteamdata.myteam_sn_num);
				$('.teamordermg').text(res.data.myteamdata.myteam_mg_num);
				$('.teamamountpdd').text((res.data.myteamdata.myteam_pdd_money * 1).toFixed(2));
				$('.teamamountjd').text((res.data.myteamdata.myteam_jd_money * 1).toFixed(2));
				$('.teamamounttb').text((res.data.myteamdata.myteam_tb_money * 1).toFixed(2));
				$('.teamamountvip').text((res.data.myteamdata.myteam_vip_money * 1).toFixed(2));
				$('.teamamountsn').text((res.data.myteamdata.myteam_sn_money * 1).toFixed(2));
				$('.teamamountmg').text((res.data.myteamdata.myteam_mg_money * 1).toFixed(2));
				$("#amount").text((res.data.amount * 1).toFixed(2));
				$("#credit").text((res.data.myallmoney * 1).toFixed(2));
			}
		})
	}

	function switchMystatistic() {
		$('.nav_top ul li').click(function() {
			$(this).addClass('active').siblings().removeClass('active');
			data.incometype = $(this).attr("data-incometype");
			getShouRuBaoBiao();
			$('.timename').text($('.nav_top ul li.active').text());
		})
	}
</script>

</html>
